package android.demo.library;

import android.app.ListActivity;
import android.content.Intent;
import android.database.Cursor;
import android.demo.R;
import android.demo.library.model.Library;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;

public class LoanBookActivity extends ListBookActivity {
	
	@Override
	protected Cursor getBookCursor(){
		return Library.getInstance().getBooks();
	}
	
	@Override
	protected void onBookChosen(long id) {
		Library.getInstance().makeLoan(id, "Carlo");
		
	}
}
